package com.example.examsystem2.service.serviceImpl;

import com.example.examsystem2.entity.ErrorQuestion;
import com.example.examsystem2.mapper.ErrorQuestionMapper;
import com.example.examsystem2.service.ErrorQuestionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ErrorQuestionServiceImpl implements ErrorQuestionService {

    @Resource
    private ErrorQuestionMapper errorQuestionMapper;

    public void setErrorQuestionMapper(ErrorQuestionMapper errorQuestionMapper) {
        this.errorQuestionMapper = errorQuestionMapper;
    }

    @Override
    public int add_error_question(ErrorQuestion errorQuestion) {
        return errorQuestionMapper.add_error_question(errorQuestion);
    }

    @Override
    public int get_error_question(ErrorQuestion errorQuestion) {
        return errorQuestionMapper.get_error_question(errorQuestion);
    }

    @Override
    public List<ErrorQuestion> get_error_question_by_u_id(int u_id) {
        return errorQuestionMapper.get_error_question_by_u_id(u_id);
    }

    @Override
    public int del_error_question_by_eq_id(int eq_id) {
        return errorQuestionMapper.del_error_question_by_eq_id(eq_id);
    }
}
